package cst.a720yyq.zyfypt_720yyq;

import android.os.Bundle;
import android.support.design.widget.FloatingActionButton;
import android.support.design.widget.Snackbar;
import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.Toolbar;
import android.view.View;
import android.webkit.WebView;

import cst.a720yyq.zyfypt_720yyq.R;

public class ProjectActivity extends AppCompatActivity {

    private int resid;
    private WebView webView;
    private String BASEURL="http://amicool.neusoft.edu.cn/";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_artical);
        System.out.println("----查看文章详情");
        resid = getIntent().getIntExtra("id", 1);

        webView = (WebView) findViewById(R.id.art_web);
        webView.loadUrl(BASEURL + "project.php/show/index/id/" + resid);
    }

}
